<?php
//--Code by: Vũ Thanh Lai, Shared at: sinhvienit.net
function tagFriend($ownerid,$photoid,$userid,$username,$x=0,$y=0)
{
	global $facebook;
	
	return $facebook->api("/$photoid/tags?to=$userid","POST",array('owner_uid'=>$ownerid,'tag_uid'=>$userid,'tag_text'=>$username,'x'=>$x,'y'=>$y));
}